<?php echo $this->htmlTotemAntigo; ?>

<script type="text/javascript" >
    $(function(){
        var url = "<?php echo $this->baseUrl(); ?>/"+caracter;

        if ($("form .error").length > 0) {
            var html = '<h2>Processo não encontrado!</h2>';
            html += '<h5>Instruções:</h5><ol><li>Para VOLTAR, aperte <b>ENTER</b></li></ol>';
            html += '<p><a href="'+url+'" ><button>Voltar</button></a></p>';
            return $("#main").html(html);
        } else {
            $("#main").html($("#wrapper").html());
            $("form").attr("method","").attr("action","");
            $("form button").click(function(e){
                e.preventDefault();
                window.location = url;
            });
        }
    });
</script>